<?php

namespace App\Http\Controllers\Api;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Http\Requests\Api\ApiRequest;
use App\Models\Dict;

class DictController extends Controller
{
     public function getList(Request $request)
    {
        $rs['status']  = true;        
        $where['type'] = $request->type?$request->type:1;
        $list = Dict::where($where)->get();
        $rs['data'] = $list;
        return response()->json($rs);   
    }

   
}
